﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace buildingLib
{
    public static class SQLDatabase
    {
        static Database g_DataBase = null;

        public static Database GetDatabase()
        {
            if (g_DataBase == null)
                g_DataBase = DatabaseFactory.CreateDatabase();
            return g_DataBase;
        }
    }
}
